insert interval solution

visit shbcf.ru